<template>
  <div>
    <h1>App组件</h1>
    <hr />
    <!-- 给子组件绑定自定义事件,事件处理函数是写在App组件中的 -->
    <Test @xxx="handle"></Test>
  </div>
</template>

<script>
import Test from './Test.vue'
export default {
  components: {
    Test,
  },
  methods: {
    handle(...args) {
      console.log('handle', args)
    },
  },
}
</script>

<style></style>
